home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 11: TSX-11 / Linux Cubed Series 11 - TSX-11 Vol 1.iso / sbin / bootutil.1 / bootutil / bootutils / mount / fstab.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-01  |  757 b   |  26 lines

  1. /* The fsent(3) routines are obsoleted by mntent(3).  I use them for
  2.    convenience.  Since the implementation uses mntent(3), be very
  3.    careful with the static buffers returned.
  4.    $Header: /usr/src/mount/RCS/fstab.h,v 1.1 1992/09/06 13:30:53 root Exp root $ */
  5.  
  6. #ifndef _FSTAB_H
  7. #include <stdio.h>
  8. #include <mntent.h>
  9.  
  10. #define _PATH_FSTAB    "/etc/fstab"
  11.  
  12. /* Translate fsent(3) stuff into mntent(3) stuff.
  13.    In general this won't work, but it's good enough here.  */
  14. #define fstab mntent
  15. #define fs_type mnt_type
  16. #define fs_spec mnt_fsname
  17. #define FSTAB_SW MNTTYPE_SWAP
  18.  
  19. struct fstab *getfsent (void);
  20. struct fstab *getfsspec (const char *spec);
  21. struct fstab *getfsfile (const char *file);
  22. int setfsent (void);
  23. void endfsent (void);
  24.  
  25. #endif /* _FSTAB_H */
  26.